//////////////////////////////////////////////////////
// SplitterMDIChild.h
//  Declaration of the CSimpleView and CSplitterMDIChild class

#ifndef MDICHILDVIEW_H
#define MDICHILDVIEW_H


// Declaration of CSimpleView
class CSimpleView : public CWnd
{
public:
    CSimpleView();
    COLORREF GetColor() {return m_Color;}
    void SetColor(COLORREF color) { m_Color = color; }

protected:
    virtual void OnDraw(CDC& dc);
    virtual LRESULT OnMouseActivate(UINT uMsg, WPARAM wParam, LPARAM lParam);
    virtual LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam);
    virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
    
private:
    COLORREF m_Color;
};

// Declaration of the CDockSimple class
class CDockSimple : public CDocker
{
public:
    CDockSimple() {SetView(m_View);}
    virtual ~CDockSimple() {}

    CSimpleView& GetSimpleView() { return m_View; }

private:
    CSimpleView m_View;

};

// Declaration of CSplitterMDIChild
class CSplitterMDIChild : public CMDIChild
{
public:
    CSplitterMDIChild();
    virtual ~CSplitterMDIChild();

protected:
    virtual BOOL    OnCommand(WPARAM wParam, LPARAM lParam);
    virtual void    OnColor(COLORREF rgb);
    virtual int     OnCreate(CREATESTRUCT& cs);
    virtual void    OnInitialUpdate();
    virtual LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam);
    virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);

private:
    CDockSimple m_View;
};

#endif  //MDICHILDVIEW_H
